import request from 'utils/request'

/**
 * 登录请求
 * @param {string} mobile 手机号
 * @param {string} code 验证码
 * @returns  Promise
 */
export const login = (mobile, code) => {
  return request('/authorizations', 'post', { mobile, code })
}

/**
 * 
 * @returns 获取用户信息
 */

export const getUserProfile = () => {
  return request('/user/profile', 'get')
}